home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / p / pov / povlisti.ngs / twist3.pov < prev    next >
Encoding:
Text File  |  1992-07-27  |  2.1 KB  |  68 lines

  1. // Persistence of Vision Raytracer
  2. // Twister objects were generated using the POV-Ray utility "twister.exe"
  3. // and then hand-tweaked.
  4.  
  5. #include "include.inc"
  6. #declare Pale_Pink   = color red 0.88 green 0.74 blue 0.77
  7. #declare Pale_Blue   = color red 0.65 green 0.80 blue 0.91
  8. #declare Pale_Green  = color red 0.68 green 0.84 blue 0.74
  9. #declare Pale_Yellow = color red 0.88 green 0.88 blue 0.74
  10.  
  11. // These declarations are required for the twist files.
  12. // If you change the _type_ of object used, you must also reflect that
  13. // change in the particular twist.inc file.  Watch out for exceeding the
  14. // scale of the bounding shape in the twist.inc files, too.
  15. //-----------------------------------------------------------------
  16. // Shapes used for each twister
  17. // ----------------------------
  18.  
  19. #declare Part3 = union {
  20.     quadric { Ellipsoid scale < 0.25 0.25 0.25 > translate <-5 0 0> }
  21.     quadric { Ellipsoid scale < 0.25 0.25 0.25 > translate < 5 0 0> }
  22.     intersection { Disk_X scale < 5.00 0.25 0.25 >}
  23. }
  24.  
  25. // Textures for each twister
  26. // ----------------------------
  27. #declare Texture3 =  texture {
  28.     Metal
  29.     gradient <0 1 0>
  30.     color_map {
  31.         [0.00 0.25 color Pale_Pink color Pale_Green]
  32.         [0.25 0.50 color Pale_Green color Pale_Blue]
  33.         [0.50 0.75 color Pale_Blue color Pale_Yellow]
  34.         [0.75 1.00 color Pale_Yellow color Pale_Pink]
  35.     }
  36.     ambient 0.3
  37.     diffuse 0.7
  38. }
  39.  
  40. // Now, include the twister data (as objects)
  41. // ----------------------------
  42. #include "twist3.inc"
  43.  
  44. // This sets things up for a possible animation.
  45. // Note that twister #2 is 90 degrees out of sync with the others
  46. // ----------------------------
  47. #declare RotateY1 = 0
  48.  
  49. // Now, start the scene description
  50. // ----------------------------
  51. camera {
  52.    location <0 0  -25>
  53.    direction <0 0  FoV_45>
  54.    up  <0  1  0>
  55.    right <1.33333 0 0>
  56.    look_at <0 0 0>
  57. }
  58.  
  59. object { light_source  { <-10 10 -20>  color White  } }
  60. #declare The_Twist = composite {
  61.     object { Macaroni3 rotate <0 RotateY1 0> }
  62. }
  63.  
  64. composite {
  65.     The_Twist
  66.     translate <0 -10 0>  // Centered on 0 y
  67. }
  68.